﻿<%@ Page Language="c#" CodeBehind="Online.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.OnlinePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>Online</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript" type="text/javascript">
    //<!--
    function SetCookie(sName, sValue) {
      document.cookie = sName + "=" + escape(sValue) + "; ";
    }

    function GetCookie(sName) {
      var aCookie = document.cookie.split("; ");
      for (var i = 0; i < aCookie.length; i++) {
        var aCrumb = aCookie[i].split("=");
        if (sName == aCrumb[0])
          return unescape(aCrumb[1]);
      }
    }

    function opendialwin() {
      var newdialoguewin = window.showModalDialog("../SM/Setup.aspx", window, "dialogWidth:500px;DialogHeight=140px;status:no");
      if (newdialoguewin != null) {
      }
    }

    function show_sm() {
      if (typeof (msgwin) != "undefined" && msgwin.open && !meizz.closed) {
        msgwin.focus();
      }
      else {
        mytop = screen.availHeight - 246;
        myleft = 0;
        var msgwin = window.open("../SM/MsgManage.aspx", "auto_call_show", "height=170,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=" + mytop + ",left=" + myleft + ",resizable=yes");
      }
    }

    function showonline() {
      onlinewin = window.open("onlineperson.aspx", "online", "width:500,height:800,toolbar=no,status=no,resizable=yes")
      onlinewin.moveTo(20, 20)
      onlinewin.resizeTo(600, 500)
    }

    function re() {
      window.location.reload();
    }

    function setup() {
      opendialwin();
    }

    function page_load() {
      var n = GetCookie('UDS_RefreshTime');
      if (n == null) {
        n = 30000;
      }
      setInterval('re()', n)
    }
    //-->
  </script>
  <style type="text/css">
    body
    {
      background-color: #0051a5 !important;
    }
  </style>
</head>
<body onload="page_load()" class="treeview_page">
  <form runat="server" id="aspnetForm">
  <asp:ScriptManager runat="server">
    <services>
      <asp:ServiceReference path="OnlineService.asmx" />
    </services>
  </asp:ScriptManager>
  <table border="0" style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
    <tr>
      <td width="12%" style="width: 33px" valign="middle">
        <a href="#" onclick="setup()">
          <img src="../../Images/person.gif" border="0" style="width: 20px; height: 19px" /></a>
      </td>
      <td width="34%">
        <font size="2" color="white">在线人数:</font>
      </td>
      <td width="15%">
        <a href="javascript:showonline()">
          <asp:Label ID="lblOnlineCount" runat="server" ForeColor="Red" Font-Size="X-Small" /></a>
      </td>
      <td width="39%">
        <asp:Literal ID="lit" runat="server" />
      </td>
    </tr>
  </table>
  <div class="treeview_right_splitter">
    &nbsp;
  </div>
  </form>
</body>
</html>
